tests/test-cli-extensions: Fix with single-binary coreutils
authorJan Tojnar <jtojnar@gmail.com>
Sat, 26 Mar 2022 09:50:45 +0000 (10:50 +0100)
committerJan Tojnar <jtojnar@gmail.com>
Sat, 26 Mar 2022 09:55:42 +0000 (10:55 +0100)
commit1898019face400b84b504c199a5a3de27969103d
treec275b44bb88d9b6d071995f637a982c92e5de0dc
parent574d35bbdf0f3e62c94bcb396ea4f005afc0418d
tests/test-cli-extensions: Fix with single-binary coreutils

On systems where `coreutils` are built with `--enable-single-binary=symlinks` like Nix,
`/usr/bin/env` is symlinked to `/usr/bin/coreutils` and uses `argv[0]` to determine which program to run.
Since the `test-cli-extensions.sh` created a new symlink named `ostree-env`,
coreutils would be confused about the utility to choose, so running it would fail:

ostree-env: unknown program ‘ostree-env’
Try 'ostree-env --help' for more information.

Fixes: https://github.com/ostreedev/ostree/issues/2553
tests/test-cli-extensions.sh